//
//  FirstViewControlle.m
//  08-HomeWork
//
//  Created by GivenBmli on 16/7/25.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "FirstViewControlle.h"
#import "ViewController.h"
@interface FirstViewControlle ()

@end

@implementation FirstViewControlle
- (void)viewDidLoad {
        [super viewDidLoad];
    
        UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
        btn.backgroundColor = [UIColor orangeColor];
        btn.frame = CGRectMake(100, 100, 100, 100);
        [btn addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:btn];
    }

- (void)click:(UIButton *)btn {
    ViewController *Vc = [[ViewController alloc]init];
    UINavigationController *nave = [[UINavigationController alloc]initWithRootViewController:Vc];
    [self presentViewController:nave animated:YES completion:nil];








}
@end